package com.hm.prac2;

public class Test {
    public static void main(String[] args) {
        ComparableCircle c1 = new ComparableCircle(5.5);
        ComparableCircle c2 = new ComparableCircle(6.5);
        System.out.println(c1.compareTo(c2));
        System.out.println(c1.compareTo("c2"));
        ComparableRectangle r1 = new ComparableRectangle(5.5, 2);
        ComparableRectangle r2 = new ComparableRectangle(5.6, 2);
        System.out.println(r1.compareTo(r2));
        System.out.println(r1.compareTo("r2"));

    }
}
